<%= render  :partial => "apo/navigation" %>

    <div id="content-pri-frame">

      <div id="content-pri-frame-gener">

	<div class="container">
		<div class="cellRow cellRowHeader">
			<div class="cellBlock" style="text-align: left;">
				Committee
			</div>
			<div class="cellBlock" style="text-align: left;">
				MIC
			</div>
			<% if session[:user].admin? %>
				<div class="cellBlockNoBorder cellBlockNoBorderL">
				</div>
				<div class="cellBlockNoBorder cellBlockNoBorderL">
				</div>
			<% end %>
		</div>
	  <% @committees.each_with_index do |committee, index| %>
			<div class="cellRow cellRow<%= index % 2 + 1 %>">
				<div class="cellBlock">
						<%= link_to h(committee.name), :controller => "events", :action => "show" , :id => committee %>
				</div>
				<div class="cellBlock">
					<% if !(committee.mic_id == nil) %>
						<%= link_to h(committee.mic.full_name) , :controller => "members", :action => "show" , :id => committee.mic %>
					<% else %>
							&nbsp;
						<% end %>
				</div>
				<% if session[:user].admin? %>
				<div class="cellBlockNoBorder cellBlockNoBorderL" style="text-align: center;">
					<%= link_to "edit", :controller => "events", :action => "edit", :id => committee %>
				</div>
				<div class="cellBlockNoBorder cellBlockNoBorderL" style="text-align: center;">
					<%= link_to "remove", :controller => "events", :action => "remove", :id => committee %>
				</div>
				<% end %>
			</div>
	  <% end %>
	</div>
</div>
</div>

<%= render :partial => "apo/footer" %>